package com.cjm.one.webmanager.service.pay.impl;

import com.alipay.api.AlipayApiException;
import com.cjm.one.model.payment.entity.AliPay;
import com.cjm.one.payment.client.PaymentInfoClient;
import com.cjm.one.webmanager.service.pay.PayService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class PayServiceImpl implements PayService {
    @Resource
    private PaymentInfoClient paymentInfoClient;

    @Override
    public Boolean returnPay(AliPay aliPay) throws AlipayApiException {
      return   paymentInfoClient.returnPay(aliPay).getData();
    }
}
